package cook.models;

import javax.persistence.Column;

import com.fasterxml.jackson.annotation.JsonIgnore;

public class Ingredient {
    private double quantity;
    private String unit;
    private String name;
    private Integer id;

    
    @Column(name="quantity")
    public double getQuantity() {
        return quantity;
    }

    public void setQuantity(final double quantity) {
        this.quantity = quantity;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(final String unit) {
        this.unit = unit;
    }

    public String getName() {
        return name;
    }

    @Column(name="name")
    public void setName(final String ingredient) {
        this.name = ingredient;
    }

    @JsonIgnore
    public Integer getId() {
        return id;
    }

    @JsonIgnore
    @Column(name = "id_rec")
    public void setId(final Integer id) {
        this.id = id;
    }
}
